package src.node;

import java.util.LinkedHashMap;

/**
 * Created by IntelliJ IDEA.
 * User: NRG
 * Date: 02.11.12
 * Time: 9:22
 * To change this template use File | Settings | File Templates.
 */
public class Node {
    private LinkedHashMap<String,Integer> words;
    private int id;

    public Node() {
    }

    public Node(LinkedHashMap<String,Integer> newWords,int newID){
        words= newWords;
        id= newID;
    }

    public LinkedHashMap<String, Integer> getWords() {
        return (LinkedHashMap<String,Integer>)words.clone();
    }

    public void setWords(LinkedHashMap<String, Integer> words) {
        this.words = (LinkedHashMap<String,Integer>)words.clone();
    }

    public int getId() {
        return id;
    }

    public String toString(){
        return "Node ID: " + id;
    }
}
